<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!doctype html>
 <html lang="zh-CN">
 <head>
   <meta charset="UTF-8">
   <%@ include file="/share/systemInclude.jsp" %>
   
   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        
        //表单提交前 验证 表单
        $("#updateForm").Validform({
			btnSubmit : "#btn_sub",
			tiptype : 3,
			beforeCheck:function(curform){
				 
			 },
			 beforeSubmit:function(data){
				 
			 }
		});
        
        $('#contactImage').click();
      });
   </script>
   <title>Document</title>
 </head>
 <body>
  <div class="container">
   <div id="forms" class="">
        <div class="box">
          <div class="box_border">
            <div class="box_top">
            	<b class="pl15">
            		<c:if test="${operateStatus == 'sysAdd' }">
						联系我们：
					</c:if>
					<c:if test="${operateStatus == 'sysEdit' }">
						联系我们：
					</c:if>
            	</b>
            </div>
            <div class="box_center">
              <form id="updateForm" action="${root }/control/contact/contactController/${operateStatus}.do" class="jqtransform" method="post">
               <input type="hidden" name="contactId" value="${contact.contactId }" class="input-text lh30" size="40"/>
               <table class="form_table pt15 pb15" width="100%" border="0" cellpadding="0" cellspacing="0">
                 <tr>
                  <td class="td_right"><span class="need">*</span>联系人：</td>
                  <td class=""> 
                    <input type="text" maxlength="50" name="contactName" value="${fn:escapeXml(contact.contactName)}" class="input-text lh30" size="40" dataType="*1-50">
                  </td>
                </tr>
                <tr>
                  <td class="td_right"><span class="need">*</span>联系电话：</td>
                  <td class=""> 
                    <input type="text" maxlength="20" name="contactPhone" value="${fn:escapeXml(contact.contactPhone)}" class="input-text lh30" size="40" dataType="*1-20">
                  </td>
                </tr>
                <tr>
                  <td class="td_right"><span class="need">*</span>联系地址：</td>
                  <td class=""> 
                    <input type="text" maxlength="100" name="contactAddress" value="${fn:escapeXml(contact.contactAddress)}" class="input-text lh30" size="40" dataType="*1-100">
                  </td>
                </tr>
                <tr>
                  <td class="td_right"><span class="need">*</span>邮箱：</td>
                  <td class=""> 
                    <input type="text" maxlength="100" name="contactEmail" value="${fn:escapeXml(contact.contactEmail)}" class="input-text lh30" size="40" dataType="*1-100">
                  </td>
                </tr>
                <tr>
                  <td class="td_right"><span class="need">*</span>网站：</td>
                  <td class=""> 
                    <input type="text" maxlength="150" name="contactURL" value="${fn:escapeXml(contact.contactURL)}" class="input-text lh30" size="40" dataType="*1-150">
                  </td>
                </tr>
                <tr>
                  <td class="td_right"><span class="need">*</span>展示图片：</td>
                  <td class="">
                  	<span id="contactImageShow">
						<c:if test="${not empty contact.contactImage}">
							<img id="contactImageImage" src="${imageService }${contact.contactImage}" alt="" style="width: 200px;height: 200px;" />
						</c:if>
					</span>
					<input type="hidden" name="oldContactImage" value="${contact.contactImage}" />
					<input type="hidden" id="contactImageValue" name="contactImage" value="${contact.contactImage}" dataType="*"/>
					<input type="button" name="button" class="btn btn82 btn_add" id="contactImage" value="Image" onclick="uploadImage('contactImage','contactImageShow','contactImageValue','${imageService}');" />
                  </td>
                </tr>
                <tr>
                  <td class="td_right"><span class="need">*</span>内容：</td>
                  <td class=""> 
                  	<textarea maxlength="3000" name="contactContent" id="" cols="30" rows="10" class="textarea" dataType="*1-3000">${fn:escapeXml(contact.contactContent)}</textarea>
                  </td>
                </tr>
                 <tr>
                   <td class="td_right">&nbsp;</td>
                   <td class="">
                     <input id="btn_sub" type="button" name="button" class="btn btn82 btn_save2" value="保存" >
                    <!-- <input type="button" name="button" class="btn btn82 btn_res" value="返回" onclick="location.href='javascript:history.go(-1)'"> --> 
                   </td>
                 </tr>
               </table>
               </form>
            </div>
          </div>
        </div>
     </div> 
  </div> 
 </body>
 </html>
  